package cn.zwx.demo.service.impl;


import cn.zwx.demo.service.IndexService;
import cn.zwx.mvcframework.annotation.ZwxService;

/**
 * @author zhangwenxue
 */
@ZwxService
public class IndexServiceImpl implements IndexService {
    @Override
    public String query(String name,String from) {
        return "My name is " + name +". I am come from "+from+ ",the request from cn.zwx.demo.service.";
    }

    @Override
    public String sayHello(String name) {
        return "My name is " + name + ",sayHello the request cn.zwx.demo.service.";
    }

    @Override
    public String noParams() {
        return "This is no params method ,noParams  the request cn.zwx.demo.service.";
    }

    @Override
    public String noAnnotation(String name) {
        // 模拟异常
        int i = 10/0;
        return "This is no params method ,noAnnotation  the request cn.zwx.demo.service.";
    }


}